﻿using DXApplicationTangche.DTO;
using mendian;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.Luna
{
    public partial class Frm重置密码 : DevExpress.XtraEditors.XtraForm
    {
        public Frm重置密码()
        {
            InitializeComponent();
        }

        private void simpleButton确定_Click(object sender, EventArgs e)
        {
            try
            {
                RestCall.PostHttp(URL.接口url + "/store/updateSalesAssistantPassword?code=" + this.textBox用户名.Text.Trim(), this.textBox密码.Text.Trim());
                MessageBox.Show("修改密码成功");
                this.Close();
            }
            catch
            {
                MessageBox.Show("修改密码失败");
                return;
            }
        }
    }
}
